using System;
using Castle.ActiveRecord;
using CosyTrade.Data;

namespace CosyTrade.Organization
{
    [Serializable, ActiveRecord("Company")]
    public class Company : BusinessObject
    {
        protected Guid primaryKey = Guid.NewGuid();
        private string caption;
        private string shortCaption;
        private string rifNumber;
        private string nitNumbner;
        private string telphone;
        private string address;
        
        [PrimaryKey(PrimaryKeyType.Assigned, "ROWGUID", Access=PropertyAccess.NosetterCamelcase)]
        public Guid PrimaryKey
        {
            get { return primaryKey; }
            set { primaryKey = value; }
        }

        [Property]
        public string Caption
        {
            get { return caption; }
            set { caption = value; }
        }

        [Property]
        public string ShortCaption
        {
            get { return shortCaption; }
            set { shortCaption = value; }
        }

        [Property]
        public string RifNumber
        {
            get { return rifNumber; }
            set { rifNumber = value; }
        }

        [Property]
        public string NitNumbner
        {
            get { return nitNumbner; }
            set { nitNumbner = value; }
        }

        [Property]
        public string Telphone
        {
            get { return telphone; }
            set { telphone = value; }
        }

        [Property]
        public string Address
        {
            get { return address; }
            set { address = value; }
        }
    }
}